package com.jie.demo.controller;

import com.jie.demo.service.impl.DemoserviceImpl;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class DemoController {

    private DemoserviceImpl demoservice;


    @RequestMapping("/ping")
    public Object ping(){
        return "success";
    }

    @RequestMapping("/query")
    public Object query(@RequestBody String requestjson){

        return demoservice.query(requestjson);
    }
}
